#!/usr/bin/env bash

./configure --prefix=$HOME/.usr/local/ --without-x --enable-gui=no

line=$(awk '/setenv\("COLUMNS"/ {print NR}' src/os_unix.c 2>/dev/null)
if [[ "$line" -gt "0" ]];then
	sed -i "${line}s/^/\/\//" src/os_unix.c
fi

# vim: set ft=bash:
